package models;

import java.util.List;

import javax.persistence.*;

import play.db.jpa.Model;
@Entity
 

public class Funcionario extends Pessoa{

	
	public Funcionario(String tipo, String nome, String telefone,
			String endereco, int cpf) {
		super(tipo, nome, telefone, endereco, cpf);
	}
	public Funcionario() {

	}
	@ManyToMany  
	  @JoinTable(  
	  name="Func_Horario",  
	  joinColumns=@JoinColumn(name="Horario_ID", referencedColumnName="ID"),  
	  inverseJoinColumns=@JoinColumn(name="Func_ID", referencedColumnName="ID")  
	       )   
	       
	public List<Horario> hora;
	
	public Servico servico;
	public String funcao;
	public String salario;
	public boolean disponivel= true;
	
	
	public boolean isDisponivel() {
		return disponivel;
	}
	public void setDisponivel(boolean disponivel) {
		this.disponivel = disponivel;
	}
}
